$(function(){
    let arr = location.href.split('=');
    console.log(arr);
    
    let url =new URL(location.href);
    console.log(url);
    

    let id = new URLSearchParams(location.search).get('id') || 0
    console.log(id);
    
    if (id>0) {
        console.log(4444);
        axios.get(`${host}/blogs.${id}`).then((res)=>{
            console.log(res);
            let blog =res.data.data

            $('input[name=title]').val(blog.title)
            $('input[name=auther]').val(blog.author)
            
        }
    )
    }
})